<@override name="title">小票积分</@override>

<@override name="viewbody">
<!-- Page title -->
<div class="row">
    <div class="col-md-12">
        <h3 class="page-title">
            小票积分
            <small>小票列表</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/admin/home">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    小票积分
                </a>
            </li>
        </ul>
    </div>
</div>
<!-- /page title -->

<div class="row">
    <div class="col-md-12">
        <div class="portlet box light-grey">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-globe"></i>小票一览表
                </div>
            </div>
            <div class="portlet-body">
                <div class="row">
                    <div class="col-md-12">
                        <form action="#" role="form" class="form-inline" id="search_form">
                            <div class="form-group">
                                <label for="exampleInputEmail2">会员号：</label>
                                <input type="text" placeholder="会员号" name="member.card_no" class="form-control form-filter input-sm">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputPassword2">手机号：</label>
                                <input type="text" placeholder="手机号" name="member.phone" class="form-control form-filter input-sm">
                            </div>
                            <div class="form-group">
                                <label>提交日期：</label>
                                <input type="text" name="uploadTime" class="form-control form-filter input-sm date date-picker" data-date-format="yyyy-mm-dd">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputPassword2">兑换状态：</label>
                                <select name="ticket.added" data-placeholder="兑换状态" class="form-control form-filter input-sm select2me">
                                    <option value=""></option>
                                    <option value="1">已兑换</option>
                                    <option value="0">未兑换</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <button class="btn btn-sm blue filter-submit margin-bottom" id="search_btn">
                                    <i class="fa fa-search"></i> 检索
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
                <table class="table table-striped table-bordered table-hover" id="data-list">
                    <thead>
                    <tr role="row" class="heading">
                        <th width="1%">
                            <input type="checkbox" class="group-checkable">
                        </th>
                        <th width="3%">
                            序号
                        </th>
                        <th width="10%">
                            会员号
                        </th>
                        <th width="10%">
                            手机号
                        </th>
                    <#--<th width="8%">
                        微信号
                    </th>-->
                        <th width="15%">
                            小票图片
                        </th>
                        <th width="10%">
                            提交时间
                        </th>
                        <th width="10%">
                            小票号
                        </th>
                        <th width="10%">
                            兑换状态
                        </th>
                        <th width="10%">
                            兑换积分时间
                        </th>
                        <th width="5%">
                            积分总额
                        </th>
                        <th width="5%">
                            本次积分
                        </th>
                        <th width="8%">
                            操作
                        </th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>

        </div>
    </div>
</div>

<script id="added_template" type="text/x-handlers-template">
    {{#if added}}
    <span class="label label-success">
             已兑换
        </span>
    {{else}}
    <span class="label label-danger">
             未兑换
        </span>
    {{/if}}
</script>

<script id="action_template" type="text/x-handlers-template">
    {{#if added}}
    <span class="label label-success">
         已经兑换
    </span>
    {{else}}
    <a href="javacript:void(0);" class="btn default purple-stripe" name="add_intgral" title="小票积分" data-member="{{memberId}}" data-ticket="{{ticketId}}">
        <i class="fa fa-building-o"></i>
    </a>
    {{/if}}
</script>

<script id="pricute_template" type="text/x-handlebars-template">
    {{#if pricute}}
    <#--<a href="${ctx}{{pricute}}" class="thumbnail fancybox-button" data-rel="fancybox-button">
        <img class="img-responsive" style="max-width: 154px; max-height: 103px" src="${ctx}{{pricute}}" alt="">
    </a>-->
    <a href="${ctx}/admin/ticket/pricute/{{ticketId}}" target="_blank" class="thumbnail" data-rel="fancybox-button">
        <img class="img-responsive" style="max-width: 154px; max-height: 103px" src="${ctx}{{pricute}}" alt="">
    </a>
    {{else}}
    暂无图片
    {{/if}}
</script>

<div id="alertcontent_template" style="display: none;">
    <div class="form-body">
        <div class="form-group">
            <label class="col-md-3 control-label text-right">小票号：</label>
            <div class="col-md-9">
                <input type="text" class="form-control input-inline input-medium bootbox-ticket-input" name="ticketNo" placeholder="小票号">
            </div>
        </div>
    </div>

    <div class="form-body">
        <div class="form-group">
            <label class="col-md-3 control-label text-right">积分：</label>
            <div class="col-md-9">
                <input type="text" class="form-control input-inline input-medium bootbox-ticket-input" name="integral" placeholder="积分">
            </div>
        </div>
    </div>
</div>


<script id="color_temple" type="text/x-handlebars-template">
    <span class="label {{classname}}">{{value}}</span>
</script>

<script id="errortip_temple" type="text/x-handlebars-template">
    <span class="error help-inline" style="color: #b94a48;">{{tip}}</span>
</script>
</@override>
<@override name="viewmodule">ticket</@override>
<@extends name="../_basic/main.ftl"></@extends>
